$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/03 20:34:17 sturm Exp $
--- Makefile.orig	Tue Dec 24 10:16:22 2002
+++ Makefile	Tue Dec 24 10:17:30 2002
@@ -10,16 +10,15 @@ TARGET = gkrellkam2
 DESTDIR =
 
 # This should point to the GKrellM headers
-GKRELLM_HDRS = /usr/include
+GKRELLM_HDRS = ${LOCALBASE}/include
 
-CC := gcc
-GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
-CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) -I$(GKRELLM_HDRS)
+GTKFLAGS := $(shell pkg-config gtk+-2.0 gthread-2.0 --cflags)
+CFLAGS := $(CFLAGS) -fPIC $(GTKFLAGS) -I$(GKRELLM_HDRS)
 LDFLAGS := -shared -Wl
 INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins
 USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm2/plugins
 MANPAGES := gkrellkam-list.5
-MANPAGE_DIR := $(DESTDIR)/usr/share/man/man5
+MANPAGE_DIR := $(DESTDIR)/${PREFIX}/man/man5
 
 .PHONY: clean install
 
